gdkoffscreenwindow: use embedder to derive surfaces & scale factor
authorLionel Landwerlin <llandwerlin@gmail.com>
Wed, 2 Dec 2015 01:41:07 +0000 (01:41 +0000)
committerLionel Landwerlin <llandwerlin@gmail.com>
Thu, 3 Dec 2015 21:47:29 +0000 (21:47 +0000)
commitbd332f10ab2d3a3eee5ee53d472dd0a7ad15198e
tree2887e04703ed53034d6ced6246f8aad338c6ad3f
parent3ba11782db1e35fa1fc9a2e6005c7272b9745756
gdkoffscreenwindow: use embedder to derive surfaces & scale factor

In Gdk, a GdkOffscreenWindow parent has to be the root window. This is
problematic on Wayland because the root window doesn't necessary have the
right information with regard to scale factor.

This patch proposes to rely on the embedder, if available, to derive
surfaces as well as getting the scale factor.

https://bugzilla.gnome.org/show_bug.cgi?id=758936
gdk/gdkoffscreenwindow.c